package Service;

import com.google.gson.Gson;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import Entity.commodity;


public class LiebiaoService {


	public ArrayList<commodity> get_type(String type){
		Gson gson=new Gson();
		Map<String,String> map=new HashMap<String,String>();
		map.put("cmd","get_type");
		map.put("type",type);
		String cmd = gson.toJson(map);
		String str_response =new Transfer_station().transfer(cmd);
		ArrayList<commodity> arr = gson.fromJson(str_response, ArrayList .class);
		return arr;
	}



}
